﻿using AiXiu.BLL;
using AiXiu.Model;
using System;
using System.Web.UI;

namespace AiXiu.WebSite
{
    /// <summary>
    /// 评论页
    /// </summary>
    public partial class Discuss : Page
    {
        protected string VideoId;
        protected string NickName;
        protected string Avatar;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                VideoId = Request.QueryString["id"];
                TBUsers user = IdentityManager.ReadUser();
                this.NickName = user.NickName ?? $"用户{user.Id}";
                this.Avatar = user.Avatar ?? "/imgs/avatar.jpg";
            }
        }
    }
}